package com.wx.tgp.designpattern.builderPattern;

import com.wx.tgp.designpattern.builderPattern.product.*;

/**
 * 建造者模式
 */
public class Client {

    public static void main(String[] args) {
        Director director = new Director();
        Builder a = new ConcreteBuilderA();
        Builder b = new ConcreteBuilderB();
        director.createBuilder(a);
        Product product = a.getResult();
        product.show();
        director.createBuilder(b);
        product = b.getResult();
        product.show();
    }
}
